<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>lesson 14</title>
  <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
  <div id="root"></div>
</body>
<script>
  //子组件的定义要在父组件上面   子组件写对象形式
  const HelloWorld = {
    template: '<div>Hello world !!!~~hi~~</div>'
  };
  const app = Vue.createApp({
    components: {
      HelloWorld,
    },
    template: `<div><HelloWorld/></div>`,
  });
  app.mount('#root');

</script>

</html>